# a = ['python', 'css', 'c++', 'java']
# nums = input("请输入你要访问的第几个元素的下标:")
# try:
#     nums = int(nums)
#     print(f'您访问的下标为{nums}的元素是{a[nums]}')
# except ValueError as e:
#     print('出错了，下标必须是输入整数')
# except IndexError as e:
#     print('出错了，下标超过最大限制了')


num1 = input('请输入整数')
num2 = input('请输入整数')
try:
    num1 = int(num1)
    num2 = int(num2)
    print(num1 + num2)
except ValueError as e:
    print(f'出错了，错误的原因是{e}')
